n = int(input("请输入三角形的长度："))
print("左上角直角三角形：")
i = 1
while i <= n:
    print("*\t" * i)
    i += 1
print("=" * 20)
print("左下角直角三角形：")
j = n
while j > 0:
    print("*\t" * j)
    j -= 1
print("=" * 20)
print("右上角直角三角形：")
k = 0
while k < n:
    print(" \t" * k + "*\t" * (n - k))
    k += 1
print("=" * 20)
print("右下角直角三角形：")
m = 0
while m < n:
    print(" \t" * (n - m - 1) + "*\t" * (m + 1))
    m += 1